package com.itheima.a07threadmethod4;

public class MyThread extends Thread{
    /**
     */
    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
            System.out.println(getName() + " @ " + i);

            //之前是按照时间片轮转的 一个时间片没用完还会接着执行打印
            //出让CPU执行权  -- 每打印依次就放出CPU
            Thread.yield();
        }
    }
}
